package tests.pojos;

import java.io.Serializable;

import tester.cobertura.Instrument;
import tests.pojos.Address;

public class Person implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5353077355278468468L;
	String name;
	int age;
	Address address;
	
	public Person(String name, int age, Address address){
		this.name = name;
		this.age = age;
		this.address = address;
	}
	
	public Person(){
		name = "";
		age = 0;
		address = null;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}
	
	public boolean isOfAge(){
		return (getAge() >= 21) ? true : false;
	}
	
}
